home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / UTIL / DESKTOP / BLACKHOLE / !BlakHole2 / !FatHelp / Help / File_Find < prev    next >
Text File  |  1996-05-20  |  11KB  |  116 lines

  1. {title}The File Finder
  2. The file finder can be used to find files (surprise!) and directories (because I couldn't be bothered telling it not to).
  3. [1]
  4. The file finder will search through your hard disc trying to find the file you enter in its window.
  5. [1234]
  6. The window is in two sections. The inner scrollable bit contains all the options.
  7. Gosh, isn't it exciting...? The outer bit of the window contains the all-important 'GO' button and also an area which will display what BlackHole is doing (or what I think it thinks it's doing) as the search proceeds.
  8. {subhead}Basic Search Options
  9. {subsub}Search From
  10. [12]
  11. The 'Search From' icon tells the File Finder where to start the search from. The default for this is 'All Hard Discs" which means that all your hard discs will be searched.
  12. [34]
  13. Enter the path you wish to search in the 'Search From' icon. This directory and all its subdirectories will be searched for files and directories with names and/or filetypes matching those specified in the 'Search For:' section. Multiple search paths (including the names of floppy discs) can be specified by separating them with a backslash (a "\"). For example, you could enter adfs::4.$.Apps\adfs::4.$.Games. The filer will prompt for disc insertion if necessary. I hope. Dragging a directory to this window will add it to the path list, putting a "\" in if one is not already there. The default for this is 'All Hard Discs" which means that all your hard discs will be searched.
  14. [1234]
  15. {subsub}Name
  16. [12]
  17. The 'Name(s)' box is where you type the name of the file you want to search for. You can enter more than one filename by separating them with a "\"
  18. [34]
  19. Similarly, you can enter multiple search names in the 'Name(s) :' box. Again use "\" as a separator.
  20. A maximum of 10 names can be entered, and they can contain wildcards. The wildcards accepted are the standard RISC OS ones - # for any one character, * for zero or more characters.
  21. [1234]
  22. {subsub}Filetype
  23. [1]
  24. The filetype box is used to restrict the search to files of a particular type. I wouldn't worry about this is I were you.
  25. [2]
  26. The filetype box is used to restrict the search to files of a particular type. Filetypes are the computer's way of knowing what each file is. Each filetype has a different icon, e.g. a Sprite file has a filetype of 'Sprite'.
  27. [34]
  28. If you want to search for one particular file type, this can also be entered. You can enter either the number (eg AFF) or the name (eg draw) of the filetype. Unlike earlier versions of this program, the Filetype box is no longer case sensitive and will now accept, for example, both 'draw' and 'Draw'.
  29. [234]
  30. Dragging a file to the window will make the type of that file the current search type. The filetype menu can be opened by clicking on the arrow icon.
  31. [1234]
  32. {subsub}Size
  33. [12]
  34. The 'size' box allows you to restrict the search to files of a particular size, or files less than or greater than a certain size. The default setting is '>=0 bytes' which will list all files >=0 bytes in size, i.e. everthing.
  35. [34]
  36. The 'size' box allows you to restrict the search to files of a particular size, or files less than or greater than a certain size. The default setting is '>=0 bytes' which will list all files >=0 bytes in size, i.e. everthing. This is useful if you want to find out which files are taking up all the space on your hard disc, for instance. You must specify an operator to go with the number, i.e. <, >, or =. The program will compare the size of the found files (bytes) with your entry in the size box: <size of file>.<user entry>. If the mathematical statement is TRUE (ie 50000>400) then the file will be included in the list. If the statement is mathematically invalid or false (ie 500000<=>=400 or 4>100)  then the file will be ignored. If you omit an operator, the program inserts an =. Leaving this box blank makes the program default to >0.
  37. [34]
  38. You can use other standard operators, such as AND or NOT, but this will, I imagine, be of somewhat limited use.
  39. [1234]
  40. The button icons in this window control the following:
  41. {subsub}Case Sensitive
  42. If this is selected, then the search becomes case sensitive, i.e. entering 'Help' as the filename will find files called 'Help' but not 'help'.
  43. {subsub}Sounds Like
  44. Will search for all files that 'sound like' the search string. Ie. if your search string is 'Messages', then selecting the 'Sounds Like' option will also find "mussages' 'Misages', etc. Note that Case Sensitivity still operates if you have 'Sounds Like' selected.
  45. [34]
  46. Note also that doing 'Sounds Like' is not very helpful if you use wildcards in your search string - just how exactly do you pronounce 'M#s*es'?
  47. Note Note also also, that the 'sounds like' routine is English-oriented and will probably not function too well in other languages (although I've never tried it).
  48. [1234]
  49. {subsub}Fast Search
  50. Normally, Black Hole informs you of what it is doing during a search - it shows the directory it is currently searching and the number and total size of files found. Displaying this information slows the program down a tad, so by selecting 'Fast' you can stop it wasting its time.
  51. {subsub}Create List
  52. Turning this ON will make the File Finder create a list of all the files found and display that list in a window. You will normally want this to be on.
  53. {sprite}found
  54. You can run the file by double-clicking on it. This will behave exactly as if you had double-clicked on it in a filer window. You can copy the file to another directory by dragging it from the window to that directory, or you can load it into an application by dragging the file to that application on the iconbar.
  55. Clicking MENU over an entry produces a menu with five options:
  56. {tab}
  57. Open Parent : The same as clicking 'SELECT'
  58. Run File/Run App/Open Dir : Context sensitive to the type of item clicked over.
  59. [12]
  60. Squash/Unsquash : If you have Acorn's Squash program, you can use it to compress files. If not, don't fret.
  61. [34]
  62. Squash/Unsquash : Acorn's 'Squash' thingy again. This only works on files.
  63. [1234]                                             
  64. Bin File/Bin App/Bin Dir : Perform action on the item exactly as if it had been dragged to the iconbar icon. There is a confirmation window first.
  65. Destroy : Confirmation window followed by unconditional deletion.
  66. {notab}
  67. This menu is also available when you do a Contents=>Info from the iconbar menu, except that the 'Bin' option is unavailable.
  68. The file list will open as soon as the search has finished, or after 1 second, whichever comes first. If you close the file list while the search is in progress, the search will stop.
  69. {subhead}The Iconbar Menu
  70. The File Finder icon on the iconbar has a menu with three options. The top one opens an information window, the bottom one quits the File Finder and the middle one allows you to open the previous list of found files if you have closed it.
  71. {subhead}Action
  72. In addition to finding files, the File Finder can be told to do a variety of things with the files it finds. The Action it takes is controlled under the 'Action' section of the window. Click SELECT on the 'menu' icon to get a menu of possible actions.
  73. The default action is:
  74. {tab}
  75. {subsub}No Action.
  76. This basically does nothing - it just allows the file finder to create a list of the found files. You should leave it at this for normal operation. It will ensure that 'Create List' is enabled before it starts, otherwise you won't be able to see what files have been found. This would be rather silly.
  77. {notab}
  78. [1]
  79. I wouldn't worry about the others I were you.
  80. [234]
  81. Other available actions are:
  82. {tab}
  83. {subsub}Open Viewer
  84. Will open the directory viewer containing the found file.
  85. {subsub}Move to Bin
  86. This acts only on files, not directories. It will move found files into the current Bin Directory, overwriting any file already exisiting with that name. Note that this can be rather dangerous, and that because of this there is a confirmation window before the search actually starts.
  87. {subsub}Remove DOS Extension
  88. People who transfer files from PCs will find that all the files have a filename extension on them - i.e. they all have names like 'CRAPOS/TXT'. This file finder Action will remove all the extensions from the files. Thus the above file would be renamed to 'CRAPOS'.
  89. {subsub}Set File Type
  90. This one sets the filetype of all the found files. If you select this one, a new writable icon will appear in the window. You should enter the file type to set into this icon. Sorry, but you can't use the filetype menu for this.
  91. {subsub}Search File Contents
  92. This will search through the contents of all the found files looking for a specified string. It will display the found string and the line number in the results window. If the file contains more than one copy of the string, only the first will be displayed.
  93. [4]
  94. BASIC files will be detokenised and the displayed line number will be the BASIC line number.
  95. [234]
  96. {subsub}Find Duplicate Files
  97. This one will check each file found against the previous found files and will flag any that are identical. It will create a list of ALL the found files. Any files that are identical to earlier files will be identified by an extra line of information in the List window. There are lots of options associated with this Action. The first allows you to move any duplicate files to the Bin directory. The rest control whether names, filetypes, size, contents, and datestamps are compared.
  98. {notab}
  99. The actions work separately from the 'Create List' option - thus you can Move to Bin all found files AND create a list of them.                 
  100. [123]
  101. {subhead}An Example
  102. Suppose you want to search your entire hard disc for any text files with names containing 'text':
  103. Type
  104.   *text*
  105.   (the two *'s are wildcards)
  106. into the Name box and select case sensitivity as appropriate. Now type
  107.   FFF (or Text)
  108. into the type box. Finally hit RETURN or click on GO.
  109. The GO button becomes an Abort button for the duration of the search. Clicking on this button at any time during a search will stop the search and display the results.
  110. If you leave both the name and type boxes blank, then all the files in the specified search path(s) will be listed - Black Hole defaults to a "*" for the search name.
  111. The number of files found is displayed during the search at the bottom of the
  112. window. Unless you have selected 'Move to Bin', this also includes directories.
  113. [1234]
  114. {subhead}Extending the file finder
  115. Programmers with a knowledge of BASIC may write new Actions for the file finder. This has its own separate help.
  116.